{capture name="hidden"}
		<input name="admin" type="hidden" value="1">
		<input name="module" type="hidden" value="clients">
		<input name="body" type="hidden" value="{$smarty.session.body}">
		<input name="mod" type="hidden" value="group">
		<input name="act" type="hidden" value="add">
		<input name="lang" type="hidden" value="{$smarty.session.lang}">
{/capture}	
{capture name="fields"}
<!-- * -->
		<table width="100%" cellpadding="3" cellspacing="0">
			<tr>
				<td width="35%" height="1"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
				<td><img src="client/img/spacer.gif" class="spacer" alt="" /></td>					
			</tr>
			<tr>
				<td>{t t='Pavadinimas'}:</td>
				<td><input name="name" type="text" style="border:1px solid #A8B3B8; width:100%; height:19px"></td>
			</tr>
			<tr>
				<td height="3" colspan="2">
				<table width="100%" cellpadding="0" cellspacing="0">
					<tr>
						<td height="1" bgcolor="#D1D8DB"><img src="client/img/spacer.gif" class="spacer" alt="" /></td>
					</tr>
				</table>
				</td>
			</tr>
			<script language="javascript" type="text/javascript">
				{literal}
				function fSubG (oSelf){
					var oGroups=document.getElementById('groups');
					var oSelect=oGroups.getElementsByTagName('SELECT');
					if (oSelf.value==0) {
						oGroups.style.visibility='hidden';
						oSelect[0].disabled=true;
						
					} else {
						oGroups.style.visibility='visible';
						oSelect[0].disabled=false;
					}
				}
				{/literal}
			</script>
			<tr>
				<td>{t t='Tipas'}:</td>
				<td>
					<select name="typexxxx" style="border:1px solid #A8B3B8; width:100%;" onChange="fSubG (this)">
						<option value="0" selected>{t t="Grupė"}</option>
						<option value="1">{t t="Pogrupis"}</option>				
					</select>					
				</td>
			</tr>				
			<tr id="groups" style="visibility:hidden ">
				<td>{t t='Sukurti grupėje'}:</td>
				<td>
					<input type="hidden" name="parent" value="0">
					{ext->class_function class="clients" func="get_clients_group" assign="groups_list"}
					<select name="parent" style="border:1px solid #A8B3B8; width:100%;" disabled>
					{foreach from=$groups_list item="group"}
						{if !$group.parent}<option value="{$group.id}">{$group.name}</option>{/if}
					{/foreach}
					</select>					
				</td>
			</tr>				
		</table>	
<!-- /* -->
{/capture}